﻿using System;
using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    [ServiceContract(Namespace = "http://HRMService")]
    public interface ISalaryFund
    {
        [OperationContract]
        DataSet SalaryFund_GetAll();

        [OperationContract]
        DataSet SalaryFund_GetDate(string _branchCode);

        [OperationContract]
        DataSet SalaryFund_GetData(int month, int year, string BranchCode);

        [OperationContract]
        DataSet SalaryFund_GetLastData(int month, int year, string BranchCode);

        [OperationContract]
        SalaryFundInfo SalaryFund_GetInfo(int SalaryFundID);

        [OperationContract]
        DataSet SalaryFund_GetList(out int ItemCount, int currentPage, int pageSize, int year, string BranchCode);

        [OperationContract]
        int SalaryFund_Insert(SalaryFundInfo eInfo);

        [OperationContract]
        bool SalaryFund_Update(SalaryFundInfo eInfo);

        [OperationContract]
        bool SalaryFund_Delete(int SalaryFundID);

        [OperationContract]
        int SalaryFund_CheckExist(int ID, string BranchCode, string _Quater, DateTime _date);
    }
    [DataContract(Namespace = "http://HRMService")]
    public class SalaryFundInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        DateTime _Month;
        [DataMember]
        public DateTime Month
        {
            get { return _Month; }
            set { _Month = value; }
        }
        string _Quater;
        [DataMember]
        public string Quater
        {
            get { return _Quater; }
            set { _Quater = value; }
        }
        string _BranchCode;
        [DataMember]
        public string BranchCode
        {
            get { return _BranchCode; }
            set { _BranchCode = value; }
        }
        decimal _BHYT_Amount;
        [DataMember]
        public decimal BHYT_Amount
        {
            get { return _BHYT_Amount; }
            set { _BHYT_Amount = value; }
        }

        int _BHYT_Employee;
        [DataMember]
        public int BHYT_Employee
        {
            get { return _BHYT_Employee; }
            set { _BHYT_Employee = value; }
        }
        

        decimal _BHYT_HaveToPaid;
        [DataMember]
        public decimal BHYT_HaveToPaid
        {
            get { return _BHYT_HaveToPaid; }
            set { _BHYT_HaveToPaid = value; }
        }

        decimal _BHYT_Increase;
        [DataMember]
        public decimal BHYT_Increase
        {
            get { return _BHYT_Increase; }
            set { _BHYT_Increase = value; }
        }

        decimal _BHYT_Decrease;
        [DataMember]
        public decimal BHYT_Decrease
        {
            get { return _BHYT_Decrease; }
            set { _BHYT_Decrease = value; }
        }

        decimal _BHYT_PaidAmount;
        [DataMember]
        public decimal BHYT_PaidAmount
        {
            get { return _BHYT_PaidAmount; }
            set { _BHYT_PaidAmount = value; }
        }

        decimal _BHYT_Sum;
        [DataMember]
        public decimal BHYT_Sum
        {
            get { return _BHYT_Sum; }
            set { _BHYT_Sum = value; }
        }

        decimal _BHYT_Thua;
        [DataMember]
        public decimal BHYT_Thua
        {
            get { return _BHYT_Thua; }
            set { _BHYT_Thua = value; }
        }

        decimal _BHYT_Thieu;
        [DataMember]
        public decimal BHYT_Thieu
        {
            get { return _BHYT_Thieu; }
            set { _BHYT_Thieu = value; }
        }

        decimal _BHXH_Amount;
        [DataMember]
        public decimal BHXH_Amount
        {
            get { return _BHXH_Amount; }
            set { _BHXH_Amount = value; }
        }

        int _BHXH_Employee;
        [DataMember]
        public int BHXH_Employee
        {
            get { return _BHXH_Employee; }
            set { _BHXH_Employee = value; }
        }
        

        decimal _BHXH_HaveToPaid;
        [DataMember]
        public decimal BHXH_HaveToPaid
        {
            get { return _BHXH_HaveToPaid; }
            set { _BHXH_HaveToPaid = value; }
        }

        decimal _BHXH_Increase;
        [DataMember]
        public decimal BHXH_Increase
        {
            get { return _BHXH_Increase; }
            set { _BHXH_Increase = value; }
        }

        decimal _BHXH_Decrease;
        [DataMember]
        public decimal BHXH_Decrease
        {
            get { return _BHXH_Decrease; }
            set { _BHXH_Decrease = value; }
        }

        decimal _BHXH_PaidAmount;
        [DataMember]
        public decimal BHXH_PaidAmount
        {
            get { return _BHXH_PaidAmount; }
            set { _BHXH_PaidAmount = value; }
        }

        decimal _BHXH_Sum;
        [DataMember]
        public decimal BHXH_Sum
        {
            get { return _BHXH_Sum; }
            set { _BHXH_Sum = value; }
        }

        decimal _BHXH_Thua;
        [DataMember]
        public decimal BHXH_Thua
        {
            get { return _BHXH_Thua; }
            set { _BHXH_Thua = value; }
        }

        decimal _BHXH_Thieu;
        [DataMember]
        public decimal BHXH_Thieu
        {
            get { return _BHXH_Thieu; }
            set { _BHXH_Thieu = value; }
        }
        decimal _BHTN_Amount;
        [DataMember]
        public decimal BHTN_Amount
        {
            get { return _BHTN_Amount; }
            set { _BHTN_Amount = value; }
        }

        int _BHTN_Employee;
        [DataMember]
        public int BHTN_Employee
        {
            get { return _BHTN_Employee; }
            set { _BHTN_Employee = value; }
        }


        decimal _BHTN_HaveToPaid;
        [DataMember]
        public decimal BHTN_HaveToPaid
        {
            get { return _BHTN_HaveToPaid; }
            set { _BHTN_HaveToPaid = value; }
        }

        decimal _BHTN_Increase;
        [DataMember]
        public decimal BHTN_Increase
        {
            get { return _BHTN_Increase; }
            set { _BHTN_Increase = value; }
        }

        decimal _BHTN_Decrease;
        [DataMember]
        public decimal BHTN_Decrease
        {
            get { return _BHTN_Decrease; }
            set { _BHTN_Decrease = value; }
        }

        decimal _BHTN_PaidAmount;
        [DataMember]
        public decimal BHTN_PaidAmount
        {
            get { return _BHTN_PaidAmount; }
            set { _BHTN_PaidAmount = value; }
        }

        decimal _BHTN_Sum;
        [DataMember]
        public decimal BHTN_Sum
        {
            get { return _BHTN_Sum; }
            set { _BHTN_Sum = value; }
        }

        decimal _BHTN_Thua;
        [DataMember]
        public decimal BHTN_Thua
        {
            get { return _BHTN_Thua; }
            set { _BHTN_Thua = value; }
        }

        decimal _BHTN_Thieu;
        [DataMember]
        public decimal BHTN_Thieu
        {
            get { return _BHTN_Thieu; }
            set { _BHTN_Thieu = value; }
        }
        int _IsApproved;
        [DataMember]
        public int IsApproved
        {
            get { return _IsApproved; }
            set { _IsApproved = value; }
        }
        decimal _BHYT_KyTruocThua;
        [DataMember]
        public decimal BHYT_KyTruocThua
        {
            get { return _BHYT_KyTruocThua; }
            set { _BHYT_KyTruocThua = value; }
        }
        decimal _BHYT_KyTruocThieu;
        [DataMember]
        public decimal BHYT_KyTruocThieu
        {
            get { return _BHYT_KyTruocThieu; }
            set { _BHYT_KyTruocThieu = value; }
        }
        decimal _BHTN_KyTruocThua;
        [DataMember]
        public decimal BHTN_KyTruocThua
        {
            get { return _BHTN_KyTruocThua; }
            set { _BHTN_KyTruocThua = value; }
        }
        decimal _BHTN_KyTruocThieu;
        [DataMember]
        public decimal BHTN_KyTruocThieu
        {
            get { return _BHTN_KyTruocThieu; }
            set { _BHTN_KyTruocThieu = value; }
        }
        decimal _BHXH_KyTruocThua;
        [DataMember]
        public decimal BHXH_KyTruocThua
        {
            get { return _BHXH_KyTruocThua; }
            set { _BHXH_KyTruocThua = value; }
        }
        decimal _BHXH_KyTruocThieu;
        [DataMember]
        public decimal BHXH_KyTruocThieu
        {
            get { return _BHXH_KyTruocThieu; }
            set { _BHXH_KyTruocThieu = value; }
        }
        decimal _PhatKyTruoc;
        [DataMember]
        public decimal PhatKyTruoc
        {
            get { return _PhatKyTruoc; }
            set { _PhatKyTruoc = value; }
        }
        decimal _PhatKyNay;
        [DataMember]
        public decimal PhatKyNay
        {
            get { return _PhatKyNay; }
            set { _PhatKyNay = value; }
        }
        decimal _PhatDaNop;
        [DataMember]
        public decimal PhatDaNop
        {
            get { return _PhatDaNop; }
            set { _PhatDaNop = value; }
        }
        decimal _PhatKySau;
        [DataMember]
        public decimal PhatKySau
        {
            get { return _PhatKySau; }
            set { _PhatKySau = value; }
        }
    }
}
